package com.ktgj.customer.mapper;

import java.util.List;
import com.ktgj.customer.domain.Employee;
import org.apache.ibatis.annotations.Param;

/**
 * 员工Mapper接口
 * 
 * @author ruoyi
 * @date 2021-07-27
 */
public interface EmployeeMapper 
{
    /**
     * 查询员工
     * 
     * @param employeeId 员工ID
     * @return 员工
     */
    public Employee selectEmployeeById(Long employeeId);

    List<Employee> selectEmployeeByIds(List<Long> lstIds);

    /**
     * 查询员工列表
     * 
     * @param employee 员工
     * @return 员工集合
     */
    public List<Employee> selectEmployeeList(Employee employee);

    /**
     * 新增员工
     * 
     * @param employee 员工
     * @return 结果
     */
    public int insertEmployee(Employee employee);

    /**
     * 修改员工
     * 
     * @param employee 员工
     * @return 结果
     */
    public int updateEmployee(Employee employee);

    /**
     * 删除员工
     * 
     * @param employeeId 员工ID
     * @return 结果
     */
    public int deleteEmployeeById(Long employeeId);

    /**
     * 批量删除员工
     * 
     * @param employeeIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteEmployeeByIds(Long[] employeeIds);

    public Employee employeeLogin(@Param("loginId") String loginId, @Param("loginPwd") String loginPwd);

    /**
     * 查询指定员工
     * */
    public Employee backSelectEmployee(Long employeeId);

    String selectEmployeeStatusById(Long employeeId);

    /**
     * 新增vip经理
     * */
    public int addvipManager(Employee employee);

    /**
     * 工号获取员工信息
     * */
    public Employee selectEmployeeByEmployeeLoginId(Employee employee);

    /**
     * 查询每一个员工关联着几个会员
     * @param employeeId
     * @return
     */
    public Long selectEmpVipCount(Long employeeId);

    /**
     * 查询员工列表
     */
    public List<Employee> selectEmployeeVip(Long deptId);

    /**
     * 员工姓名获取id
     * */
    public List<Employee> employeeIdList(String employeeName);

    /**
     * 员工id获取姓名
     * */
    public Employee employeeNameList(Long employeeId);

    /**
     * 获取指定部门的所有员工
     * */
    public List<Employee> employeeVipIdList(Long deptId);

    /**
     * 查询员工列表
     * */
    public List<Employee> employeeList(Employee employee);
}
